<?php

function mreadFile($path = NULL) {
    $data = array();
    $file = fopen($path, "r") or exit("Unable to open file!");
while (!feof($file)) {
        $data[] = fgets($file); }
        fclose($file);
        return $data;
}